﻿@model CurrencyConverterModel
@{
    ViewData["Title"] = "Convert currency";
}
<h1>Convert values</h1>
<p>Choose the values </p>

<form asp-action="Convert">
    <div class="form-group">
        <label asp-for="CurrencyFrom"></label>
        <select class="form-control dropdown" asp-for="CurrencyFrom" asp-items="Model.CurrencyCodes">
            <option value=""></option>
        </select>
        <span asp-validation-for="CurrencyFrom"></span>
    </div>
    <div class="form-group">
        <label asp-for="Quantity"></label>
        <input class="form-control" asp-for="Quantity" />
        <span asp-validation-for="Quantity"></span>
    </div>
    <div class="form-group">
        <label asp-for="CurrencyTo"></label>
        <select class="form-control dropdown" asp-for="CurrencyTo" asp-items="Model.CurrencyCodes">
            <option value=""></option>
        </select>
        <span asp-validation-for="CurrencyTo"></span>
    </div>
    <button type="submit" class="btn btn-default">Submit</button>
    <div asp-validation-summary="All"></div>
</form>
